﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Collections;
using NetManager_Server;

namespace NetManager_Server
{
    static class Program
    {
        public static double price;
        public static string manv;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ket_noi kn = new ket_noi();
            kn.Open();
            SqlCommand sql = new SqlCommand("SELECT TOP 1 DONGIA FROM BANGGIA ORDER BY ID_GIA DESC", kn.conn);
            price = Convert.ToDouble(sql.ExecuteScalar());
            kn.Close();
            //Application.Run(new FormMain());
            Application.Run(new FormMain());
            
        }
    }
}
